package com.situation.mapper;

import com.situation.pojo.DO.TbLoginLog;
import com.situation.pojo.VO.UserVO;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface LoginLogMapper {

    /**
     * 插入登录日志
     * @param loginLog
     * @return
     */
    int add(TbLoginLog loginLog);


    /**
     * 删除单个
     * @param id
     * @return
     */
    int delete(Long id);

    /**
     * 批量删除
     * @param list
     * @return
     */
    int batchDelete(List<Long> list);


    /**
     * 日志列表
     * @return
     */
    List<TbLoginLog> findAll(TbLoginLog loginLog);




    List<Map<String,Object>> userLoginReport(UserVO userVO);
}
